jQuery(document).ready(function ($) {
    if ($("#related")[0]){$('#related').flexslider({
				animation: "slide",
				animationLoop: false,
				controlNav: false,
				itemWidth: 178,
				itemMargin: 27,
				pauseOnHover: true,
				minItems: 1,
				maxItems: 3
		});
	}
	
    if ($("#related2")[0]){$('#related2').flexslider({
				animation: "slide",
				animationLoop: false,
				controlNav: false,
				itemWidth: 218,
				itemMargin: 30,
				pauseOnHover: true,
				minItems: 1,
				maxItems: 4
		});
	}
});